package pl.maciejziarko.mshare.persistence;

import pl.maciejziarko.mshare.domain.Account;
import pl.maciejziarko.mshare.domain.Role;

import java.util.List;

/**
 * @author Maciej Ziarko
 */
public interface RoleMapper {
    
    List<Role> selectRoles(Account account);
    
    int insertRoleForAccount(Role role, Account account);

    int insertRole(Role role);
    
    int deleteRole(Role role);
    
    //TODO: int updateRole(Role role);
}
